add sqlite MaxOpenConns to 1 for fixing database locking#4848
add sqlite MaxOpenConns to 1 for fixing database locking#4848lunny wants to merge 4 commits intogo-gitea:masterfrom
Conversation
|
This might not work because even if max connections is set to 1, multiple processes will still try to connect to DB (for example |
|
The solution could be to use the gitea api in |
|
@techknowlogick @sapk that's why we have |
|
@lunny that makes sense. |
|
I could try to migrate serv to /internal and not use the models/database access. |
|
I've tried this a time ago and it resulted in random errors like the server hanging up. |
|
I think this should be closed in favor of #4886 |
|
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 months. Thank you for your contributions. |
|
Closing as SQLite locking has mostly been resolved in other PRs |
see https://github.com/mattn/go-sqlite3#faq
ref: #2040 (comment)